package com.sinosoft.bee.services.proposal.service.impl;

import com.sinosoft.bee.services.proposal.entity.proposal.ProposalAppnt;
import com.sinosoft.bee.services.proposal.service.AppntInfoService;
import com.sinosoft.bee.services.proposal.mapper.AppntInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: TrickerL
 * @Description: bee
 * @Date: Create in 15:08 2018/5/16
 * @Modified By:
 */
@Service
public class AppntInfoServiceImpl implements AppntInfoService {
    @Autowired
    private AppntInfoMapper appntInfoMapper;

    /**
     * 新增投保人信息
     * @param appnt
     * @return
     */
    @Override
    public Integer insertProposalAppntInfo(ProposalAppnt appnt){
        return appntInfoMapper.insertAppntInfo(appnt);
    }

    /**
     * 删除投保人信息
     * @param appnt
     * @return
     */
    @Override
    public Integer deleteProposalAppntInfo(ProposalAppnt appnt){
        return appntInfoMapper.deleteAppntInfo(appnt);
    }

    /**
     * 查询投保人信息
     * @param id
     * @return
     */
    @Override
    public ProposalAppnt selectAllAppnt(String id){
       return appntInfoMapper.selectAllAppnt(id);
    }

    /**
     * 修改投保人信息
     * @param appnt
     */
    @Override
    public void updateById(ProposalAppnt appnt){
        appntInfoMapper.updateById(appnt);
    }


}
